#include "log.h"

int main() {
  // Initialize global logger
  xyts::InitGlobalLogger("example.log", "debug");

  // Log messages using different log levels
  LOG_TRACE("Trace log message");
  LOG_DEBUG("Debug log message");
  LOG_INFO("Info log message");
  LOG_WARNING("Warning log message");
  LOG_ERROR("Error log message");
  LOG_FATAL("Fatal log message");

  LOG_ERROR("reason: {}", "123");

  // Flush logs to ensure they are written to file
  xyts::FlushLog();

  return 0;
}